package edu.yzu.testspringboot002.po.dto;


import edu.yzu.testspringboot002.common.group.AuditGroup;
import edu.yzu.testspringboot002.common.group.QueryGroup;
import edu.yzu.testspringboot002.common.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 病人查询dto
 *
 * @author yulang
 * @date 2023-08-24
 */
@Data
public class PatientQueryDTO implements Serializable {


    private static final long serialVersionUID = -7381910739465149346L;

    /**
     * 页面num
     */
    private Integer pageNum = 1;

    /**
     * 页面大小
     */
    private Integer pageSize = 10;

    /**
     * 病人类型
     */
    private Integer patientType;

    /**
     * 记录方式
     */
    private Integer recordMode;

    /**
     * 医生id
     */
    @NotNull(message = "医生信息不能为空",groups = {QueryGroup.class, UpdateGroup.class})
    private Integer doctorId;


    @NotBlank(message = "名称信息不能为空",groups = {AuditGroup.class})
    private String doctorName;


    private String remark;

    private String keyword;

    @ApiModelProperty("0:未归档 1：已归档")
    private Integer status;

    private List<String> ids;
}
